package com.hx.study.domain;

import com.hx.common.annotation.Excel;
import com.hx.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 用户试卷对象 el_user_paper
 *
 * @author user
 * @date 2022-06-11
 */
public class UserPaper extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    private Integer id;

    /**
     * 用户
     */
    @Excel(name = "用户")
    private Integer userId;

    /**
     * 用户名
     */
    @Excel(name = "用户名")
    private String userName;

    /**
     * 试卷
     */
    @Excel(name = "试卷")
    private String paper;

    /**
     * 得分
     */
    @Excel(name = "得分")
    private Integer userScore;

    /**
     * 试题
     */
    @Excel(name = "试题")
    private String questionList;

    /**
     * 及格分
     */
    @Excel(name = "及格分")
    private Integer qualifyScore;

    /**
     * 状态
     */
    @Excel(name = "状态")
    private String status;

    /**
     * 所用时间
     */
    @Excel(name = "所用时间")
    private Integer userTime;

    /**
     * 总时长
     */
    @Excel(name = "总时长")
    private Integer totalTime;

    /**
     * 总分
     */
    @Excel(name = "总分")
    private Integer totalScore;

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserName() {
        return userName;
    }

    public void setPaper(String paper) {
        this.paper = paper;
    }

    public String getPaper() {
        return paper;
    }

    public void setUserScore(Integer userScore) {
        this.userScore = userScore;
    }

    public Integer getUserScore() {
        return userScore;
    }

    public void setQuestionList(String questionList) {
        this.questionList = questionList;
    }

    public String getQuestionList() {
        return questionList;
    }

    public void setQualifyScore(Integer qualifyScore) {
        this.qualifyScore = qualifyScore;
    }

    public Integer getQualifyScore() {
        return qualifyScore;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatus() {
        return status;
    }

    public void setUserTime(Integer userTime) {
        this.userTime = userTime;
    }

    public Integer getUserTime() {
        return userTime;
    }

    public void setTotalTime(Integer totalTime) {
        this.totalTime = totalTime;
    }

    public Integer getTotalTime() {
        return totalTime;
    }

    public void setTotalScore(Integer totalScore) {
        this.totalScore = totalScore;
    }

    public Integer getTotalScore() {
        return totalScore;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userId", getUserId())
                .append("userName", getUserName())
                .append("paper", getPaper())
                .append("userScore", getUserScore())
                .append("questionList", getQuestionList())
                .append("qualifyScore", getQualifyScore())
                .append("status", getStatus())
                .append("createTime", getCreateTime())
                .append("userTime", getUserTime())
                .append("totalTime", getTotalTime())
                .append("totalScore", getTotalScore())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
